package com.blog.service.impl;

import com.blog.mapper.ArticleMapper;
import com.blog.service.EsService;
import com.blog.pojo.Article;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
@DubboService
public class EsServiceImpl implements EsService {
    @Autowired
    private ArticleMapper articleMapper;
    @Override
    public List<Article> findAll() {
        return articleMapper.findAll();
    }
}
